import ddddocr
from DrissionPage import Chromium


tab = Chromium().latest_tab
tab.get('https://passport.qidian.com/')

ele = tab.ele('#username').input('15937676413')
ele = tab.ele('#password').input('123456')
# red-btn go-login btnLogin login-button

# ui-checkbox
ele = tab.ele('#agree5').click()
ele = tab.ele('@class=red-btn go-login btnLogin login-button').click()

img = tab.ele('@class=captcha-img').screenshot()
